package com.lzh.controller;

import com.lzh.domain.vo.BadgeVO;
import com.lzh.service.UserService;
import com.lzh.utils.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;

import javax.annotation.Resource;
import java.util.List;

@Api(value = "用户控制器")
public class UserController {

    @Resource
    private UserService userService;


    @ApiOperation(value = "获取所有徽章列表")
    @PostMapping("/public/badges/batch")
    public ResponseResult<List<BadgeVO>> getBadgeList() {
        Long uid = 1L;
        return ResponseResult.success(userService.getBadgeList(uid));
    }
}
